package upgrade

import (
	"github.com/gogf/gf/v2/frame/g"
	"github.com/sagoo-cloud/sagooiot/internal/model"
)

// GetDevOtaStrategyByIdReq 获取指定ID的数据
type GetOtaInfoReq struct {
	g.Meta    `path:"/get_ota_info" method:"get" summary:"返回升级信息" tags:"升级"`
	DeviceKey string `json:"deviceKey"        description:"设备标识" v:"required#设备标识不能为空"`
}
type GetOtaInfoRes struct {
	model.DevStrategyOut
}

type WriteOtaInfoReq struct {
	g.Meta `path:"/write_ota_info" method:"post" summary:"记录升级信息" tags:"升级进度"`
	model.Result
}
type WriteOtaInfoRes struct{}

type WriteOtaResultReq struct {
	g.Meta `path:"/write_ota_result" method:"post" summary:"记录升级信息" tags:"升级结果"`
	model.Result
}
type WriteOtaResultRes struct{}
